

export interface Body {
  items: Item[];
  title: string
  next_items: nextItem[]
}

export interface Item {
  action: { type: string, path: number };
  img_url: string;
  title: string
  material_id: number;
  ad_position_id: number;
  product_id: string;
  action_title: string;
  product_name: string;
  product_brief: string;
  product_price: string;
  id: number
  block_id: number
  label_title: string
  url: string
  subtitle: string
  prod_org_price: number
  market_price: string
}
export interface nextItem {
  title: string
  img_url: string
}

export interface Data {
  "block_id": number;
  body: Body;
  "view_type": string
}

export interface maxobj {
  "data": {
    "sections": Array<Data>
    "channel_global_config": Data
    "channel_tab_list": Data
    "special_navigation_txt": Data
  }
}


export interface setObj {
  name: string
  province: string
  city: string
  county: string
  addressDetail: string
  tel: number
  defaultFlag: boolean
}

export interface search {
  "hot_class": Array<{
    "parameter_id": number
    "name": string
  }>
  "discover_list": Array<{
    "id": number
    "item_type": number
    "sort": number
    "desc": string
    "item_id": number
  }>
}

export interface searchSuggest {
  "data": {
    "list": Array<{
      "title": string
      "class_params": Array<{
        "parameter_id": number
        "name": string
      }>
    }>
  }
}
export interface searchResult {
  "data": {
    "list_v2": Array<{
      "body": {
        "product_id": number
        "real_product_id": number
        "name": string
        "desc": string
        "image": string
        "price": number
        "is_multi_price": boolean
        "market_price": number
        "sale_label": {
          "holiday_label": {
            "img_url": string
          }
          "activity_label": Array<{
            "type": string
            "type_desc": string
            "img_url"?: string

          }>

        }
        "sort": number
        "action": {
          "comments_total": number
          "satisfy_per": number
        }
        "class_parameters": {
          "class_id": number
          "class_name": string
          "class_sort": number
          "list"?: Array<{
            "name": string
            "value": string
            "icon": string
            "top_title": string
            "parameter_id": number
          }>
        }
        "comments_total": number
        "satisfy_per": string
        "release_date": number
      }
    }>
    "filter_tags": Array<{
      "name": string
      "value": number
      "checked": boolean
    }>
    "classes": Array<options>
  }
}


export interface options {

  "class_id": number
  "class_name": string
  "class_icon": string
  "checked": boolean
  "class_is_pk": boolean
  "class_buy_guide": {
    "ad_position_id": number
    "image_url": string
    "image_url_color": string
    "material_id": number
  }

  "class_parameters": Array<parpams
  >



}



export interface rules {
  checked: boolean;
  name: string;
}

export interface parpams {
  checked: boolean;
  parameter_id: number;
  parameter_name: string;
  rules: rules[];
}




export interface Rule {
  "name": string;
}

export interface parameter {
  "parameter_name": string;
  "rules"?: Rule[];
}

export interface TotalOptions {
  "class_name": string;
  "class_parameters"?: parameter[];
}

export interface Recommend {
  "recom_list": Array<{
    "action": {
      "path": number

    }
    "image_url": string
    "market_price": number
    "price": number
    "name": string
    "product_desc": string
  }>
}

export interface CartRecommend {
  data: {
    recommendList: Array<
      {
        miShopType: number;
        data: {
          goods: {
            summary: string;
            img800: string;
            img800s: string;
            enableMoreName: boolean;
            moreName: string;
            labelGroup: {
              abovePrice: Array<
                {
                  labelId: number;
                  name: string;
                  type: string;
                  attrs: {
                    borderColor: string;
                    bgColor: string;
                    displayStatus: number;
                    fontColor: string;
                    height: number;
                  };
                }
              >
            };
            priceInfo: {
              singlePrice: {
                price: number;
              };
              marketPrice: number;
              priceTag: boolean;
            };
            itemId: number;
            multiPrice: boolean;
            name: string;
            action: {
              path: string;
              extra: string;
              type: string;
            };
          };
        };
        iid: string;
        scmv2: string;
        type: string;

      }>
  }
}

export interface cart{
  color:string
  level:string
  marketPrice:number
  name:string
  number:number
  price:number
  url:string
  basePrice:number

}

export interface reData{
  data:recList
}
// recList数组  recList:[content]
export interface recList {
  rec_list:Array<contentM>
}
// content自己 
export interface contentM {
  content: recommendM,
  rec_type: number,
  tags?: Array<{
    id: number,
    name:string
  }>
}
// content的内容
export interface recommendM {
  // 自己添加

  
  id:number,
  nickname:string,
  icon: string,
  content_type:number,
  title?: string,
  content: string,
  create_time: string,
  dev_type?: string,
  praise_num: string,
  comment_num:string,
  pic_list?: Array<{
    img: string,
  }>,
  tag_list?: Array<{
    id: number,
    tag: string,
    tag_type:number,
    tag_id: string,
    img: string,
  }>,
  video_list?: Array<vList>,
  hot_comment?:{
    name:string,
    comment:string,
    belong_place: string,
    user_id: string,
  }
  ,
  question?: {
    q_id: string,
    question: string,
    answer_num: string,
    answer_list_v2?: Array<{
      icon: string,
      answer: string,
      belong_place:string
    }>
    icon: string,
    nickname: string,
    create_time: string,
    praise:string,
    praise_num:number,
  },
  vote_detail?: {
    vote_id: number,
    content_id: number,
    title: string,
    vote_user_num: string,
    vote_type: number,
    is_end: true,
    share_num: string,
    cover_img: string,
    has_share: false,
    has_comment: false,
    has_praise: false,
    start_time: 0,
    end_time: 0,
    vote_option_list: Array<
        {
            vote_id: number,
            vote_option_id: number,
            description: string,
            sort: 3,
            vote_num: 0,
      }>,
    

},
  belong_place?:string,
}

export interface vList {
  video_url: string,
  cover: string,
  duration:number,
}
export interface questionData {
  data:questionDetail
}

export interface questionDetail {
  question: string,
  is_follow: false,
  create_time: string,
  product_name: string,
  product_img_url: string,
  rule: string,
  product_id: number,
  avatar: string,
  nickname:string,
  answer_num: string,
  praise: string,
  praise_num: number,
}
//问题详情  contentDetail
export interface answerListData {
  data:answerList
}
export interface answerList {
  answer_list:Array<answerItem>
}
export interface answerItem {
  q_id: string,
  answer_id: string,
  user_id: string,
  nickname:string,
  avatar: string,
  create_time: string,
  answer_content: string,
  reply_num: string
  valid: false,
  support: string,
  dislike: string,
  is_support: boolean,
  is_dislike: boolean,
  support_num: number,
  dislike_num: number,
  is_buy: boolean,
  is_self: boolean,
  secondary_data: secondaryData,
}
export interface secondaryData {
  answer_list: Array<secondaryItem>
}
export interface secondaryItem {
  q_id: string,
  answer_id: string,
  user_id: string,
  nickname:string,
  avatar: string,
  answer_content: string,
  reply_num: string
  valid: false,
  support: string,
  dislike: string,
  is_support: boolean,
  is_dislike: boolean,
  support_num: number,
  dislike_num: number,
  is_buy: boolean,
  is_self: boolean,
  belong_place:string
}
// 内容详情
export interface contentData {
  data:contentDetail
}
export interface contentDetail {
  id: number,
  mid:string,
  nickname:string,
  icon: string,
  content_type: number,
  content:string,
  praise_num: string,
  comment_num: string,
  belong_place: string,
  dev_type: string,
  create_time: string,
  pic_list: Array<{
    img:string,
  }>
// comment_list
  products: Array<{
    product_id: string,
    img: string,
    name: string,
    price: string,
    product_type: number,
    
  }>,
  entity_circle: {
    id: number,
    name: string
    img: string,
    hot: string,
  },
  cur_user_info: {
    avatar:string,
  }
}
// 买家秀详情评论
export interface contentCommentList {
  data: {
    comment_list:Array<contentComment>
  }
}
export interface contentComment {
    id: string,
    mid: string,
    nickname: string,
    img: string,
    create_time:string,
    comment_type: number,
  comment: string,
  support_num: number,
  second_comment_list?: Array<{
        id: string,
    mid: string,
    nickname: string,
    img: string,
    create_time:string,
    comment_type: number,
  comment: string,
  support_num: number,
  }>
}


export interface mizoneData {
  data:mizoneDetail
}
export interface mizoneDetail {
  product_id: number,
  product_name: string,
  img_url: string,
  heat: string,
  join_num:string,
}

// 测评 contentM contentData
export interface MiContentData {
  data:contentList
}
export interface contentList {
  content_list:Array<recommendM>
}

// 问大家
export interface MiQuestionData {
  data: MiQuestionDetail
}
export interface MiQuestionDetail {
  tag_list: Array<{
    tag_id: string,
    num?:string
  }>
  question_list: Array<{
    q_id: string,
    question: string,
    answer_num: string,
    answer_list_v2?: Array<{
      icon: string,
      answer: string,
      belong_place:string
    }>
    icon: string,
    nickname: string,
    create_time: string,
    praise:string,
    praise_num: number,
    belong_place:string,
  }>
}
// 搜索 
export interface questionSearchData {
  data: {
    question_list: Array<questionSearch>;
  }
}
export interface questionSearch  {
  q_id: string,
  follow_num: string,
  answer_num: string,
  h_question: string,
}
// 买家秀 reData
export interface MiBuyShow {
  data:commentS
}
export interface commentS {
  comments: Array<comment>;
  detail: commentTags;

}
export interface comment {
      comment_id: string,
      user_id: string,
      user_name: string
      user_avatar: string,
      comment_content: string,
      comment_grade: number,
      add_time: string,
      up_num: string,
      user_reply_num: string,
      up_rate: number,
      comment_images: string,
      up_customer_num: number,
      mizone_content_type: number,
     reply_content?: string,
     image_infos:Array<{
      img_url: string,
  }>
    }
export interface commentTags {
  comment_tags:Array<commentTagsDetail>
}


// comment_tags MiQuestionData
export interface commentTagsDetail {
  profile_id: number,
  profile_num: number,
  tag_id: number,
  tag_name: string,
  num_desc: string
}
export interface miTab {
  title: string,
  path: string,

} 
//米圈推荐 

export interface MiReData {
  data: {
    rec_list: [
      {
        content:{
          id: number,
          mid: string,
          nickname: string,
          icon: string,
          content_type: number,
          title: string,
          content: string,
          create_time: string,
          praise_num: string,
          comment_num: string,
          pic_list: [
              {
                  img: string,
              }
          ],
          tag_list: [
            {
              id: number,
              tag: string,
              tag_type:number,
              tag_id: string,
              img: string,
            }
        ],
          video_list: [
            {
                video_url: string,
              cover: string,
            duration:number,
            }
          ],
          is_praise: false,
          announce_id: string,
          is_top: false,
          hot_comment?: {
            name:string,
    comment:string,
    belong_place: string,
    user_id: string,
          },
          question: {
            q_id: string,
            question:string,
            answer_list: [],
            answer_num: string,
            answer_list_v2: [
                {
                    mid: string,
                    icon: string,
                    answer: string,
                    belong_place: string,
                }
            ],
            mid: string,
            icon: string,
            nickname: string,
            create_time: string,
            praise: string,
            praise_num: number,
            belong_place: string
          },
          vote_detail: {
            vote_id: number,
            content_id: number,
            title: string,
            vote_user_num: string,
            vote_type: number,
            is_end: true,
            share_num: string,
            cover_img: string,
            has_share: false,
            has_comment: false,
            has_praise: false,
            start_time: 0,
            end_time: 0,
            vote_option_list: [
              {
                vote_id: number,
                    vote_option_id: number,
                    description: string,
                    sort: 3,
                    vote_num: 0,
              }
            ]
        },
          content_list_type: number,
          belong_place: string
      }
      }
    ]
  }
} 




// MiQuestionDetail

export interface MiReDataList {
      content:{
        id: number,
        mid: string,
        nickname: string,
        icon: string,
        content_type: number,
        title: string,
        content: string,
        create_time: string,
        praise_num: string,
        comment_num: string,
        pic_list: [
            {
                img: string,
            }
        ],
        tag_list: [
          {
            id: number,
            tag: string,
            tag_type:number,
            tag_id: string,
            img: string,
          }
      ],
        video_list: [
          {
              video_url: string,
            cover: string,
          duration:number,
          }
        ],
        is_praise: false,
        announce_id: string,
        is_top: false,
        hot_comment?: {
          name:string,
  comment:string,
  belong_place: string,
  user_id: string,
        },
        question: {
          q_id: string,
          question:string,
          answer_list: [],
          answer_num: string,
          answer_list_v2: [
              {
                  mid: string,
                  icon: string,
                  answer: string,
                  belong_place: string,
              }
          ],
          mid: string,
          icon: string,
          nickname: string,
          create_time: string,
          praise: string,
          praise_num: number,
          belong_place: string
        },
        vote_detail: {
          vote_id: number,
          content_id: number,
          title: string,
          vote_user_num: string,
          vote_type: number,
          is_end: true,
          share_num: string,
          cover_img: string,
          has_share: false,
          has_comment: false,
          has_praise: false,
          start_time: 0,
          end_time: 0,
          vote_option_list: [
            {
              vote_id: number,
                  vote_option_id: number,
                  description: string,
                  sort: 3,
                  vote_num: 0,
            }
          ]
      },
        content_list_type: number,
        belong_place: string
    }

}

// 文章详情contentData

export interface ArticleDetail {
 data:ArticleData,
 }
 export interface  ArticleData {
    id: number,
    mid: string,
    nickname: string,
    icon:string,
    content_type: number,
    title: string,
    praise_num: string,
    comment_num:string,
    view_num: string,
    pic_list: [
        {
            img: string,

        }
    ],

    article: string,
    article_h5:string,
    my_follow: false,
    create_time:string,
    article_path: string,
    products: [
        {
            product_id: string,
            img: string,
            name: string,
            price: string,
            is_multi_price: true,
            product_type: number,
        },
    ],
    tag_list: [
        {
            id: number,
            tag: string,
            tag_type: number,
            tag_id: string,
            img: string,
        },
    ],
    not_pass: false,
    cart_type: 1,
    is_special: false,
    cur_user_info: {
        mid: string,
        nickname: string,
        avatar: string,
    },
    belong_place: string
}
 
// 测评详情
export interface momentData {
  data: {
    moment_list: Array<momentDataList>;
  }
  // moment_list  comment_list comment 
}
export interface momentDataList {
      moment_id: number,
      moment_url: string,
      author_img:string,
      author_nickname:string,
      author_mid: number,
      praise_num: number,
      comment_num: number,
      moment_title: string,
      moment_cover_image: string,
      product_id: number,
      product_name: string,
      product_img: string,
      product_desc: string,
      play_num: number,
      station_is_visible: true,
      is_show_float_ad: false,
      play_url:string,
      button_name: string,
      moment_width: number,
      moment_height: number,
      encrypt_author_mid: string,
      tag_id: number,
      clip_advanced_url:string,
      price: 459,
      market_price: string,
      show_price_qi: false,
      button_title:string,
      create_time:string,
      callback_id: number,
  }
